<template>
	<view class="container">
		<!-- <iframe class="webview" :src="data.html" v-if="data.html"></iframe>
		 -->
		 {{data.html}}
		 <web-view :src="data.html"></web-view>
<!-- 		 <view class="webview" v-html="data.html">
		 	
		 </view> -->
	</view>
</template>

<script setup>
	import {ref,reactive,getCurrentInstance} from "vue";
	import {onLoad,onShow,onPullDownRefresh,onReachBottom} from "@dcloudio/uni-app";
	const { appContext } = getCurrentInstance();
	const data = reactive({
		html:''
	})
	onLoad((option)=>{
		// data.html=option.html
	})
	onShow(()=>{
	})
	onPullDownRefresh(()=> {
			setTimeout(function () {
				uni.stopPullDownRefresh();
			}, 1000);
		})
	onReachBottom(()=>{
		console.log('onReachBottom')
	})

	
	function shopClassList (){
		appContext.config.globalProperties.$request({
			url: `api/shopClassList/?page=1&size=999`,
			method: 'get',
			success(res) {
			}
		})
	}
</script>

<style lang="scss" scoped>
	.container{
		padding: 30upx;

	}
</style>
